package com.woniu.secondhand.pojo;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author HMMT
 * @since 2023-05-20
 */
@Getter
@Setter
@TableName("t_secondhand_message")
@ApiModel(value = "SecondhandMessage对象", description = "")
public class SecondhandMessage implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("用户名")
    private String userName;

    @ApiModelProperty("消息标题")
    private String title;

    @ApiModelProperty("消息内容")
    private String content;

    @ApiModelProperty("消息类型 0系统通知 1被联系 2购买成功 3发货成功 4收货成功 5评价成功")
    private Byte type;

    @ApiModelProperty("0未读 1已读")
    private Byte status;

    @ApiModelProperty("逻辑删除")
    private Byte isDeleted;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
